﻿namespace Dcm.Tests
{
    using System;

    [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = true)]
    sealed class DependencyOnAttribute : Attribute
    {
        public Type Type { get; private set; }

        // This is a positional argument
        public DependencyOnAttribute(Type type)
        {
            Type = type;
        }

        public DependencyOnAttribute(string dependency)
        {
            Dependency = dependency;
        }

        public string Dependency { get; private set; }
    }
}